package com.hjx.movie.core.system.vo;

import com.hjx.movie.common.utils.tree.TreeNode;
import com.hjx.movie.persistence.system.model.IvyApi;
import com.hjx.movie.persistence.system.model.IvyMenu;

import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2021/1/8 - 18:27
 */
public class MenuTreeNode extends IvyMenu implements TreeNode<MenuTreeNode> {
    private Long nodeId;
    private Long parentId;
    private List<MenuTreeNode> children;

    @Override
    public Long getNodeId() {
        return super.getMenuId();
    }

    @Override
    public Long getParentId() {
        return super.getMenuPid();
    }

    @Override
    public void setChildren(List<MenuTreeNode> children) {
        this.children = children;
    }

    @Override
    public List<MenuTreeNode> getChildren() {
        return this.children;
    }
}
